package org.acghub.config;

import java.util.Objects;

/**
 * @Desc
 * @Author miyuki4j
 * @Date 2025/7/24/星期四 14:37
 * @Version 1.0
 */
public class Reward {

    private final int type;
    private final int id;
    private final int amount;

    public Reward(int type, int id, int amount) {
        this.type = type;
        this.id = id;
        this.amount = amount;
    }

    public int getType() {
        return type;
    }

    public int getId() {
        return id;
    }

    public int getAmount() {
        return amount;
    }

    @Override
    public String toString() {
        return "Reward{" + "type=" + type + ", id=" + id + ", amount=" + amount + '}';
    }

    @Override
    public boolean equals(Object o) {
        if (o == null || getClass() != o.getClass()) return false;
        Reward reward = (Reward) o;
        return type == reward.type && id == reward.id && amount == reward.amount;
    }

    @Override
    public int hashCode() {
        return Objects.hash(type, id, amount);
    }
}
